package com.yonyou.pmclouds.discuss.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.discuss.entity.DiscussNoticeVO;
import com.yonyou.pmclouds.discuss.entity.DiscussionVO;

public interface DiscussQuery {
    DiscussionVO[] queryDiscussByRelateKey(String relateKey, String tenantId) throws BusinessException;

    DiscussNoticeVO[] queryNoticeByReceiver(String receiver, int pageStart, int pageSize) throws BusinessException;

    boolean hasUnreadNotice(String user) throws BusinessException;

    int countUnreadNotice(String user) throws BusinessException;
}
